<!-- src/views/About.vue -->
<template>
  <div class="about">
    <header><h1>About Page</h1></header>
    <main>
      <button @click="goToOtherPage">跳转到其他页面</button>
      <p>Your main content goes here.</p>
    </main>
    <footer><p>Footer content goes here.</p></footer>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const goToOtherPage = () => {
  router.push('/')
}
</script>

<style lang="less" scoped>
header,
main,
footer {
  width: 80%;
  min-width: 800px;
  max-width: 1200px;
  padding: 20px;
  color: black;
  box-sizing: border-box;
  text-align: center;
  background-color: #f0f0f0;
  margin: 10px 0;
}
@media screen and (max-width: 600px) {
  header,
  main,
  footer {
    width: 100%;
  }
}
</style>
